package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 车位管理对象 shen_park
 * 
 * @author 铁柱
 * @date 2022-04-26
 */
public class ShenPark extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 车位id */
    private Long id;

    /** 状态 */
    @Excel(name = "状态")
    private String state;

    /** 车牌 */
    @Excel(name = "车牌")
    private String license;

    /** 进入时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "进入时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date inTime;

    /** 离开时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "离开时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date outTime;

    /** 停车场号 */
    @Excel(name = "停车场号")
    private Long parkNumber;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setState(String state) 
    {
        this.state = state;
    }

    public String getState() 
    {
        return state;
    }
    public void setLicense(String license) 
    {
        this.license = license;
    }

    public String getLicense() 
    {
        return license;
    }
    public void setInTime(Date inTime) 
    {
        this.inTime = inTime;
    }

    public Date getInTime() 
    {
        return inTime;
    }
    public void setOutTime(Date outTime) 
    {
        this.outTime = outTime;
    }

    public Date getOutTime() 
    {
        return outTime;
    }
    public void setParkNumber(Long parkNumber) 
    {
        this.parkNumber = parkNumber;
    }

    public Long getParkNumber() 
    {
        return parkNumber;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("state", getState())
            .append("license", getLicense())
            .append("inTime", getInTime())
            .append("outTime", getOutTime())
            .append("parkNumber", getParkNumber())
            .toString();
    }
}
